import pro.Student;

/**
 * @Description: 测试学生类和老师类
 * @author: muxiongxiong
 * @date: 2021年07月02日 11:02
 * 公众号：雄雄的小课堂
 * 博客：https://blog.csdn.net/qq_34137397
 */
public class Test2 {

    public static void main(String[] args) {

    }

    /**
     * 测试学生
     */
    public static void testStudent() {
        //调用带参的构造方法
        Student student =
                new Student(1, "王炎霸", 56, "山东济南");
        //调用无参的构造方法
        Student student1 = new Student();
        student1.setSid(2);
        student1.setName("齐军元");
        student1.setAge(56);
        student1.setAddress("陕西榆林");

        //取值
        System.out.println("姓名是：" + student1.getName());
        System.out.println("年龄是：" + student1.getAge());
        System.out.println("地址是：" + student1.getAddress());

    }

}
